package org.sfx.rich

import java.lang.reflect.GenericDeclaration
import java.lang.reflect.TypeVariable
import java.lang.reflect.Type

case class RichTypeVariable[D <: GenericDeclaration](underlying: TypeVariable[D]) {
  def bounds: Array[Type] = underlying.getBounds()
  def genericDeclaration: D = underlying.getGenericDeclaration()
  def name: String = underlying.getName()
}
